package main

import (
	"fmt"
	"strconv"
)

func main() {

	s := `*3\r\n$3\r\nSET\r\n$3\r\nkey\r\n$5\r\nvalue`
	msg := []byte(s)
	s1 := string(msg[2 : len(msg)-2])
	expectedLine, err := strconv.ParseUint(s1, 10, 32)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(expectedLine)
}
